package com.cspg.ssss.repository;

import com.cspg.ssss.domain.DwdggbmjdDataEntity;
import com.cspg.ssss.domain.DwdggbmjdTemporaryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DwdggbmjdDataMapper {
    int insert(DwdggbmjdTemporaryEntity record);

    List<DwdggbmjdDataEntity> selectDataById(String id);//根据id单条查询

    List<DwdggbmjdDataEntity> selectAll(String id);//查询全部数据

    int batchInsert(@Param("list")List<DwdggbmjdDataEntity> list);//批量插入

    int updateData(DwdggbmjdDataEntity record);//更新

    int deleteData(@Param("id")String  id);//删除

    DwdggbmjdDataEntity selectDataId(String id);

   int deleteByList(@Param("list") List<DwdggbmjdTemporaryEntity> list);//查询全部数据
    DwdggbmjdDataEntity seclectdis(@Param("departmentName") String departmentName,@Param("dwmc")String dwmc,@Param("wtms")String wtms,@Param("wtfxfs")String wtfxfs,@Param("wtfxsj")String wtfxsj);
    int selectDataCount();
    int insert(DwdggbmjdDataEntity dwdggbmjdDataEntity);
    int insertSelective(DwdggbmjdDataEntity record);
}